<div class="form-group">
	<label for="namebasic" class="col-md-2 control-label">${_res["commission.rule.name"]}<span class="fontColorRed">&nbsp;*</span></label>
	<div class="col-md-10">
		<input type="text" class="form-control" name="commissionRule.name" placeholder="${_res["commission.rule.name"]}" value="${commissionRule.name!}" required aria-required="true">
	</div>
</div>
<div class="hr-line-dashed"></div>
<div class="form-group">
	<label class="col-md-2 control-label">${_res["commission.rule.type"]}</label>
	<div class="col-md-10">
	    <%if (action == 'add'){%>
	       <#dict type="select" class="form-control" id="commissiontype" name="commissionRule.commissiontype"  dictCode="COMMISSION_TYPE" defaultValue="${commissionRule.commissiontype!}"/>
	    <%}else{%>
		   <#dict type="lable"  value="${commissionRule.commissiontype!}"  dictCode="COMMISSION_TYPE" />
		    <input type="hidden" name="commissionRule.commissiontype" value="${commissionRule.commissiontype!}" /> 
		 <%}%>
	</div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group" id="projectlist" style="display:none">
	<label for="passwordbasic" class="col-md-2 control-label">${_res["commission.rule.projectlist"]}</label>
	<div class="col-md-10">
	    <input type="hidden" id="projectIds" name="commissionRuleOwners.projectid" value="${commissionRuleOwners.projectid!}" /> 
		<input type="text" class="form-control" onclick ="initTreeData();" data-toggle="modal" data-target="#myModal" id="projectNames" value="${commissionRuleOwners.projectname!}" />
	</div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
	<label for="passwordbasic" class="col-md-2 control-label">${_res["commission.rule.status"]}</label>
	<div class="col-md-10">
		<#dict type="select" class="form-control" name="commissionRule.status"  dictCode="COMMON_STATUS" defaultValue="${commissionRule.status!}"/>
	</div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
	<label  class="col-md-2 control-label">${_res["commission.rule.feetype"]}</label>
	<div class="col-md-10">
	<#dict type="select" class="form-control" name="commissionRule.feetype"  dictCode="COMMISSION_FEE_TYPE" defaultValue="${commissionRule.feetype!}"/>
	</div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
	<label  class="col-md-2 control-label">${_res["commission.rule.currency"]}</label>
	<div class="col-md-10">
	<#dict type="select" class="form-control" name="commissionRule.currency"  dictCode="CURRENCY" defaultValue="${commissionRule.currency!}"/>
	</div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
	<label class="col-md-2 control-label">${_res["commission.rule.startvalue"]}<span class="fontColorRed">&nbsp;*</span></label>
	<div class="col-md-10">
		<input type="text" class="form-control" name="commissionRule.startvalue" value="${commissionRule.startvalue!}" required aria-required="true"/>
	</div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
	<label class="col-md-2 control-label">${_res["commission.rule.endvalue"]}<span class="fontColorRed">&nbsp;*</span></label>
	<div class="col-md-10">
		<input type="text" class="form-control" name="commissionRule.endvalue" value="${commissionRule.endvalue!}" required aria-required="true"/>
	</div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
	<label class="col-md-2 control-label">${_res["commission.rule.totalize"]}<span class="fontColorRed">&nbsp;*</span></label>
	<div class="col-md-10">
		<input type="text" class="form-control" name="commissionRule.totalize" value="${commissionRule.totalize!}" required aria-required="true"/>
	</div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
	<label  class="col-md-2 control-label">${_res["commission.rule.rebate"]}<span class="fontColorRed">&nbsp;*</span></label>
	<div class="col-md-10">
		<input type="text" class="form-control" name="commissionRule.rebate" value="${commissionRule.rebate!}" required aria-required="true"/>
	</div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
	<label class="col-md-2 control-label">${_res["commission.rule.expirydate"]}</label>
	  <div class="col-md-4">
            <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionRule.startdate"  placeholder="${_res['system.startdate']}" value="${commissionRule.startdate!}" />
    </div>
    <div class="col-md-4">
        <input type="text" class="laydate-icon form-control layer-date" onclick="laydate()" name="commissionRule.endate"  placeholder="${_res['system.enddate']}" value="${commissionRule.endate!}" />
    </div>
<label class="col-md-2 control-label" style="text-align: left;">${_res["commission.rule.date.memo"]}</label>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
	<label class="col-md-2 control-label">${_res["commission.rule.period"]}</label>
	<div class="col-md-10">
		<#dict type="radio" name="commissionRule.period"  dictCode="COMMISSION_RULE_PERIOD" defaultValue="${commissionRule.period!}"/>
	</div>
</div>

<div class="hr-line-dashed"></div>
<div class="form-group">
	<label class="col-md-2 control-label">${_res["commission.rule.description"]}<span class="fontColorRed">&nbsp;*</span></label>
	<div class="col-md-10">
		<textarea name="commissionRule.description" class="form-control" rows="3" cols="9" placeholder="${_res['commission.rule.description']}"   aria-required="true">${commissionRule.description!}</textarea>
	</div>
</div>
 
 